package cn.com.pg.b2b.pd.truck.appointment.management.service.util;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @title: Demo
 * @projectName: platform
 * @description: PageUtil
 * @author: Lu Zhaochun
 * @date: 2020/7/15 14:02
 */
@Data
@ApiModel
public class PageUtil<T> {

    @ApiModelProperty("当前页数编号")
    private int pageNum = 1;

    @ApiModelProperty("每页记录数量")
    private int pageSize = 10;

    @ApiModelProperty("分页排序")
    private String sorter;

    private int startSize;

    private int endSize;

    private T param;

    public PageUtil() {
    }

    public PageUtil(int pageNum, int pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }
}
